/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "调查单位信息", TableName = "V_units")]
    public class V_units:BaseEntity
    {
        /// <summary>
        ///
        /// </summary>
        [Display(Name = "typeid")]
        [MaxLength(20)]
        [Column(TypeName = "nvarchar(20)")]
        [Required(AllowEmptyStrings = false)]
        public string typeid { get; set; }

        /// <summary>
        ///机构类型
        /// </summary>
        [Display(Name = "机构类型")]
        [MaxLength(150)]
        [Column(TypeName = "nvarchar(150)")]
        public string typename { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "groupid")]
        [MaxLength(20)]
        [Column(TypeName = "nvarchar(20)")]
        [Required(AllowEmptyStrings = false)]
        public string groupid { get; set; }

        /// <summary>
        ///分组
        /// </summary>
        [Display(Name = "分组")]
        [MaxLength(150)]
        [Column(TypeName = "nvarchar(150)")]
        public string groupname { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Key]
        [Display(Name = "unitid")]
        [MaxLength(20)]
        [Column(TypeName = "uniqueidentifier")]
        [Required(AllowEmptyStrings = false)]
        public Guid unitid { get; set; }

        /// <summary>
        ///机构名称
        /// </summary>
        [Display(Name = "机构名称")]
        [MaxLength(150)]
        [Column(TypeName = "nvarchar(150)")]
        public string unitname { get; set; }

        ///// <summary>
        /////单位编号
        ///// </summary>
        //[Display(Name = "单位编号")]
        //[MaxLength(150)]
        //[Column(TypeName = "nvarchar(150)")]
        //public string uid { get; set; }

        ///// <summary>
        /////医院分级
        ///// </summary>
        //[Display(Name = "医院分级")]
        //[MaxLength(150)]
        //[Column(TypeName = "nvarchar(150)")]
        //public string classify { get; set; }
    }
}